%% generateSignalTimeVector
%
% Takes in sampling frequency in seconds and pressure data length and
% generates a vector of time values 
%
%% Syntax
% [Time_Vector] = generateSignalTimeVector(Sampling_Time, PressureValues)
%
% [t] = generateSignalTimeVector(sampling_time, data)
%
%
%% Description
% This function will take in the sampling frequency in seconds and vector of pressure values
% and will output a time vector 
%
%% Arguments
%* Sampling_Time                  - Double: A double precision value of
%                                        sampling frequency of the signal
%                                        in seconds
%
%% Returns
%* Time_Vector                     - Double: A nx1 double precision value of
%                                   the sampling frequency in seconds
%
%% Function Side Effects
%* N/A
%
%% Exceptions
%* An error is thrown if input is not of type double
%
%% See Also
% N/A


function [Time_Vector] = generateSignalTimeVector(Sampling_Time, PressureValues)

if isa(Sampling_Time, 'double') ~=1
    type = class(SamplingFrequency);
    error(sprintf(('Sampling Time is of type %s please change to type double'), type))
    
end

if isa(PressureValues, 'double') ~=1
    type = class(SamplingFrequency);
    error(sprintf(('Pressure Values are of type %s please change to type double'), type))
    
end

Time_Vector = ((Sampling_Time.*(0:(numel(PressureValues(:,1))-1))))';
    

end